package cn.edu.buaa.nlsde.mpj.fw.invoker.loader;

import cn.edu.buaa.nlsde.mpj.fw.model.output.Output;
import org.dom4j.Element;

public class OutputResolver extends VariableResolver {

    @Override
    public Output resolve(Element element) {
        log.info("开始构建输出变量" + element.attributeValue("name") + "。");
        Output output = new Output();
        output.setName(element.attributeValue("name"));
        output.setType(element.element("type").getTextTrim());
        log.info("构建输出变量" + element.attributeValue("name") + "结束。");
        return output;
    }
}